// 后端代码示例
app.post('/api/images/save', async (req, res) => {
    const { url, filename, size } = req.body;
    // 插入数据库
    const result = await db.query(
        'INSERT INTO images (url, filename, size) VALUES (?, ?, ?)',
        [url, filename, size]
    );
    res.json({ code: 200, message: '保存成功' });
});
